package com.yx.pc.api.service.impl;

import com.yx.common.utils.Query;
import com.yx.modules.api.dao.TbBookCommentDao;
import com.yx.modules.api.entity.TbBookComment;
import com.yx.pc.api.service.PcTbBookCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class PcTbBookCommentServiceImpl implements PcTbBookCommentService {
	@Autowired
	private TbBookCommentDao bookCommentDao;
	
	@Override
	public TbBookComment queryObject(Integer id){
		return bookCommentDao.queryObject(id);
	}
	
	@Override
	public List<TbBookComment> queryList(Map<String, Object> map){
		return bookCommentDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bookCommentDao.queryTotal(map);
	}
	
	@Override
	public void save(TbBookComment bookComment){
		bookCommentDao.save(bookComment);
	}
	
	@Override
	public void update(TbBookComment bookComment){
		bookCommentDao.update(bookComment);
	}
	
	@Override
	public void delete(Integer id){
		bookCommentDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		bookCommentDao.deleteBatch(ids);
	}

	@Override
	public List<TbBookComment> findByReplyFristId(Integer id) {
		return bookCommentDao.findByReplyFristId(id);
	}

	@Override
	public List<TbBookComment> queryList1(Query query) {
		return bookCommentDao.queryList1(query);
	}

	@Override
	public int queryTotal1(Query query) {
		return bookCommentDao.queryTotal1(query);
	}

}
